package tuio;

import java.awt.Component;
import java.awt.event.MouseEvent;

/**
 * @author Charles Perin
 * 29 mars 2011
 * LIMSI - INRIA Rennes
 * charles.perin@free.fr
 *
 */
public class TwoFingersEvent extends MouseEvent{
	
	private static final long serialVersionUID = -253692548975078513L;
	
	private int x2, y2;	

	public TwoFingersEvent(Component source, int id, long when, int modifiers, 
			int x, int y, int clickCount, boolean popupTrigger, int x2, int y2) {
		super(source, id, when, modifiers, x, y, clickCount, popupTrigger);
		setX2(x2);
		setY2(y2);
	}
	
	@Override
	public String toString(){
		return "id="+id+", finger1=("+getX()+","+getY()+"), finger2=("+getX2()+","+getY2()+")";
	}

	public void setX2(int x2) {
		this.x2 = x2;
	}

	public int getX2() {
		return x2;
	}

	public void setY2(int y2) {
		this.y2 = y2;
	}

	public int getY2() {
		return y2;
	}



}
